package com.stackexchange.webapis
{
	import com.stackexchange.webapis.client.StackExchangeService;
	
	import org.flexunit.Assert;

	public class BaseTest
	{
		protected var service:StackExchangeService;
		
		[Before]
		public function setUp():void
		{
			service = new StackExchangeService(TestConstants.apiKey);
		}
		
		[After]
		public function tearDown():void
		{
			service = null;
		}
		
		protected function handleTimeout(passThourghData:Object):void
		{
			Assert.fail("Timeout reached before event");	
		}
	}
}